#ifndef __BURN_H__
#define __BURN_H__
#include "boot.h"
#include "ft32f0xx.h"
#include "flash.h"
typedef struct 
{
    uint16_t crc;
    uint32_t firmwareSize;
}Burn_Parameters;
void burn_reset(void);
void burn_writePack(unsigned char *buffer, unsigned int bufferLen);
void burn_end(void);
void burn_parameters_write(Burn_Parameters *writeParm);
void burn_parameters_read(Burn_Parameters *readParm);
void burn_write_crc(uint16_t crc);
#endif
